package com.cdtye.itps.cms.controller.origindata;

import com.cdtye.common.webcore.web.AjaxJson;
import com.cdtye.itps.cms.dao.origindata.entity.JcjcDetectC2Index;
import com.cdtye.itps.cms.dao.origindata.vo.JcjcDetectC2IndexVo;
import com.cdtye.itps.cms.service.origindata.JcjcDetectC2IndexService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Api(tags="2c原始数据接口")
@Controller
@ResponseBody
@RequestMapping("/detect2cIndex")
public class JcjcDetectC2IndexController {

    @Autowired
    private JcjcDetectC2IndexService modelService;


    @ApiOperation(value = "根据c2JobId查询c2的图片信息")
    @PostMapping(value = "/findByJobId")
    public AjaxJson<JcjcDetectC2Index> findByJobId(@RequestBody JcjcDetectC2IndexVo vo){
        return AjaxJson.success(modelService.findByJobId(vo));
    }
}
